package com.sky.mapper;

import com.sky.entity.AddressBook;
import com.sky.vo.AddressBookVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AddressBookMapper {
    int isEmptyByUserId(Long userId);

    void insert(AddressBook addressBook);

    List<AddressBook> list(Long userId);

    AddressBook getDefault(Long userId);

    void modifyDefault(Long id, Integer isDefault);

    AddressBook getById(Long id);

    void deleteById(Long id);

    void modifyById(AddressBook addressBook);
}
